//
//  NSObject+MDHOcExtension.h
//  JSTech
//
//  Created by 华&梅 on 2019/9/27.
//  Copyright © 2020 华&梅. All rights reserved.
//

#import <Foundation/Foundation.h>
///高德定位
#import <AMapFoundationKit/AMapFoundationKit.h>
#import <AMapLocationKit/AMapLocationKit.h>

///
@class MDHSwiftExtension, MDHWKWebViewManager;

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (MDHOcExtension)

@end

NS_ASSUME_NONNULL_END


///高德定位 返回值
typedef void(^blockAMapLocation)(CLLocation * location, AMapLocationReGeocode *regeocode, NSError *error);

@interface MDHFileConstant (MDHOcExtension)

///WebView的管理者
+ (MDHWKWebViewManager *_Nonnull)webVc;


//MARK: 高德定位 定位
///开始定位
- (void)locationStart:(blockAMapLocation _Nullable )completionBlock;
///定位结束
- (void)locationStop;
///默认定位
@property (nonatomic, strong, readonly) CLLocation * _Nonnull location;
///当前的longitude
@property (nonatomic, copy, readonly) NSString * _Nonnull longitude;
///当前的latitude
@property (nonatomic, copy, readonly) NSString * _Nonnull latitude;


//MARK: -===== 配置 页面跳转
/// 这里是viewModel -> ViewController的映射
/// If You Use Push 、 Present 、 ResetRootViewController ,You Must Config This Dict
- (void)viewModelViewMappings;

@end


///大礼物的标准 钻石大于 520的
static float const kMDHMaxGiftLiwuMoneyInt = 520.0;
///中礼物的标准 钻石大于 200的 小于520的
static float const kMDHMidGiftLiwuMoneyInt = 200.0;
